package com.foreknow.test;

public class ClassB implements InterfaceA{

    @Override
    public int method(int n) {
        int a = 1;
        for(int i = 1;i<=n;i++){
            a *= i ;
        }
        return a;
    }
}
